﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AccelerateSensor.Console.Common
{
    public class GatewayPrivateAttributeInfo
    {
        public int StartFreq { get; set; }
        public int AntennaGain { get; set; }
        public int RfChNum { get; set; }
        public List<Dictionary<string, bool>> SfList { get; set; }

        public override string ToString()
        {
            var sb = new StringBuilder();
            foreach (var sfDict in SfList)
            {
                sb.AppendLine("{");
                foreach (var item in sfDict)
                {
                    sb.AppendLine($"{item.Key}: {item.Value}");
                }

                sb.AppendLine("}");
            }
            return $"GatewayPrivateAttributeInfo:{Environment.NewLine}" +
                   $"StartFreq: {StartFreq}, AntennaGain: {AntennaGain}, RfChNum: {RfChNum}, " +
                   $"SfList: {Environment.NewLine}{sb}.";
        }
    }
}
